TABLE.OPEN_SESSION Function

Syntax

as P = Open_Session(C tablename [,N file_open_mode|SQL::Arguments args[,C alias[,C encryption key]]])

Arguments

tablename

The name of the table to open.

file_open_mode|SQL

Optional. Determines the access privileges that apply to the open table file. You can use one of the following system variables:

Variable
Function
FILE_RO_EXCLUSIVE

Read Only (Exclusive)

FILE_RW_EXCLUSIVE

Read or Write (Exclusive)

FILE_RO_SHARED

Read Only (Shared)

FILE_RW_SHARED

Read or Write (Shared)

FILE_REUSE_EXISTING
alias

Optional. Default = assigned by Alpha Anywhere. The alias name to use for the table.

encryption

Optional. Default = no encryption. The encryption key.

Description

Open an existing table in a new session.

Discussion

The TABLE.OPEN_SESSION() method allows you to open a table more than once (in a different sessions).

Example

dim ptr as P
ptr = table.open_session("customer", FILE_RW_EXCLUSIVE, "MyCustomer")

See Also